<?php
namespace User\Model;
use Think\Model;

class MemberServiceModel extends Model
{
    CONST STATUS_ACTIVE = 1;//正常、已发布
    CONST STATUS_DELETE = 9;//已删除
    public static function getNameById($service_id = 0)
    {
        $cond['service_id'] = $service_id;
        $service = M("member_service")->where($cond)->find();
        if(empty($service)){
            return "未知";
        }
        return $service['name'];
    }
}
?>